#ifndef __D31A8D0F_21D3_45d0_BE08_1F0419BF4957__
#define __D31A8D0F_21D3_45d0_BE08_1F0419BF4957__

#include "../helper_protocol/head.h"
#include "session.h"
#include "data.h"
#include "tcp.h"
#include "udp.h"

//////////////////////////////////////////////////////////////////////////////////
// 

namespace xos_sgsj
{
	class pool
    {
    public:
        pool();
        ~pool();

    public:
		session::POOL m_session_pool;
		data::POOL m_data_pool;
		tcp::POOL m_tcp_pool;
		udp::POOL m_udp_pool;

		session::LIST m_session_list;
		data::LIST m_data_list;

	public:
		// for thread callback
		helper_protocol m_protocol;

    public:
        int init();
        int term();
    };
} // xos_sgsj

#endif // __D31A8D0F_21D3_45d0_BE08_1F0419BF4957__
